﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using GameProject.Model;
using GameProject.View;

namespace GameProject.Controller
{
    class MasterController
    {
        #region Fields

        private MasterModel m_masterModel;
        private MasterView m_masterView;
        #endregion

        #region Constructs

        public MasterController(GraphicsDeviceManager a_graphicsDeviceManager, GameCore a_core)
        {
            m_masterModel = new MasterModel(a_core);
            m_masterView = new MasterView(a_graphicsDeviceManager);
        }
        #endregion

        #region Methods

        public void Update()
        {
            if (m_masterView.DidUserExitGame() == true)
            {
                m_masterModel.ExitGame();
            }
        }

        public void Draw()
        {
            m_masterView.Draw();
        }
        #endregion
    }
}